package com.tjhzzx.hnceCore2024.enums;

import javax.baja.sys.BFrozenEnum;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;

/**
 * @author Luc
 * @version 1.0
 * @date 2024-08-01 15:03
 */
public final class BDataTableCellType extends BFrozenEnum {

    public static final int REALTIME = 0;
    public static final int TEXT = 1;

    public static final BDataTableCellType realtime = new BDataTableCellType(0);
    public static final BDataTableCellType text = new BDataTableCellType(1);

    public static final BDataTableCellType DEFAULT = realtime;

    public BDataTableCellType(int ordinal) {
        super(ordinal);
    }

    public static BDataTableCellType make(int ordinal) {
        return (BDataTableCellType) realtime.getRange().get(ordinal, false);
    }

    public static BDataTableCellType make(String tag) {
        return (BDataTableCellType) realtime.getRange().get(tag);
    }

    public static String expose() {
        return "{\"REALTIME\":0, \"TEXT\":1}";
    }

    @Override
    public Type getType() {
        return TYPE;
    }

    public static final Type TYPE = Sys.loadType(BDataTableCellType.class);
}
